package com.kefu.sys.vo;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.kefu.common.mybatis.Order;
import com.kefu.common.vo.AbstractSearchVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.StringUtils;

import javax.validation.constraints.NotEmpty;
import java.util.List;

@Data
@ApiModel(description = "用户")
public class SysUserSearchVo  extends AbstractSearchVo {
    @NotEmpty
    @ApiModelProperty(value = "租户")
    private String tenantId;

    public <T> QueryWrapper<T> builder() {
        QueryWrapper<T> builder= Wrappers.query();
        builder.eq("tenant_id",tenantId);
        return builder;
    }

}